Write a custom CUDA kernel to optimize `SaRa` activation function.

Formula:
  f(x) = x                               if x >= 0
  f(x) = x / (1 + alpha * exp(-beta*x))  if x < 0

Problem Analysis:
1. Memory Bound: This is a point-wise activation. Performance is limited by memory bandwidth.
2. Operator Chaining: The PyTorch implementation using `torch.where` creates multiple intermediate tensors.

Optimization Strategy: Fused Element-wise Kernel with Vectorization

1. One-Thread-per-Element: Map each element to a CUDA thread.

2. Vectorized Loads (float4): Use `float4` to process 128 bits per memory transaction.

3. Fused Branching Logic:
   - For each element `x`, check `if (x < 0)`.
   - If true, compute `denom = 1.0f + alpha * __expf(-beta * x)`, `result = x / denom`.
   - If false, result is `x`.

4. One-Pass: Fuse all steps into a single read-compute-write kernel. 
  
Here's an example to show you the syntax of inline embedding custom CUDA operators in torch: The example given architecture is:   
  
```python
import torch
import torch.nn as nn

BATCH_SIZE = 4096
HIDDEN_DIM = 4096
SHAPE = (BATCH_SIZE, HIDDEN_DIM)

# SaRa 超参数
ALPHA_VAL = 0.5
BETA_VAL = 0.7

class SaRa(nn.Module):
    '''
    SaRa: A Novel Activation Function with Application to Melanoma Image Classification
    https://ieeexplore.ieee.org/abstract/document/10029161
    Formula:
      f(x) = x                               if x >= 0
      f(x) = x / (1 + alpha * exp(-beta*x))  if x < 0
    '''
    def __init__(self, alpha=1.0, beta=1.0):
        super(SaRa, self).__init__()
        self.alpha = alpha
        self.beta = beta

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        pos_part = x
        neg_part = x / (1.0 + self.alpha * torch.exp(-self.beta * x))
        return torch.where(x >= 0, pos_part, neg_part)

class Model(nn.Module):
    def __init__(self, alpha=1.0, beta=1.0):
        super(Model, self).__init__()
        self.act = SaRa(alpha, beta)
    
    def forward(self, x):
        return self.act(x)

def get_inputs():
    input_tensor = torch.randn(SHAPE, dtype=torch.float32) * 2.0
    return [input_tensor.contiguous()]

def get_init_inputs():
    return [ALPHA_VAL, BETA_VAL]